home *** CD-ROM | disk | FTP | other *** search
- regc4f( 5, %daycolor_r, %daycolor_g, %daycolor_b, %daycolor_a )
- regc4f( 7, %ambient_r, %ambient_g, %ambient_b, %ambient_a )
- pshader("
-
- ps_1_1
-
- def c1, 0.0, 0.0, 0.0, 0.6
-
- tex t0 ;RGB=terrain colormap, A=terrain lightmap
- tex t1 ;terrain detail
-
- mul r0.rgb, t0, t1 ;kolor * detal
- +mad_sat r0.a, t0.a, c7.b, c7.a ;skalowanie oswietlenia (dodanie ambientu)
-
- mul r0, r0, r0.a ;wymnozenie oswietlenia przez kolor pory dnia/swiatla
-
- mul r0.rgb, r0, c5 ;mnozymy kolory przez oswietlenie
- +mov r0.a, c1.a
-
- ")
-
-